Q3Vector2D_Scale
You can use theQ3Vector2D_Scale
function to scale a two-dimensional vector.
TQ3Vector2D *Q3Vector2D_Scale ( const TQ3Vector2D *vector2D, float scalar, TQ3Vector2D *result);
vector2D
- A two-dimensional vector.
scalar
- A floating-point number.
result
- On exit, a two-dimensional vector that is the result of multiplying each of the components of
vector2D
by the value of thescalar
parameter.DESCRIPTION
TheQ3Vector2D_Scale
function returns, as its function result and in theresult
parameter, the two-dimensional vector that is the result of multiplying each of the components of the vectorvector2D
by the value of thescalar
parameter. Note that on entry theresult
parameter can be the same as thevector2D
parameter.